import request from '@/utils/request';

// 新建底部信息
export function addPrivacy(data) {
  return request({
    url: '/message/privacyEdit',
    method: 'post',
    data: data
  })
}

// 获取后台管理软件工具列表
export function getSoftwareList(data) {
  return request({
    url: '/software/adminList',
    method: 'post',
    data: data
  })
}

// 获取前台台管理软件工具列表
export function getSoftwareListForeUser(data) {
  return request({
    url: '/software/list',
    method: 'post',
    data: data
  })
}


// 新增/修改明细
export function updateSoftware(data) {
  return request({
    url: '/software/edit',
    method: 'post',
    data: data
  })
}

// 获取明细
export function getSoftwareInfo(query) {
  return request({
    url: '/software/info',
    method: 'get',
    params: query
  })
}

//删除软件                                                                         
export function delSoftware(data) {
  return request({
    url: '/software/del',
    method: 'post',
    data: data
  })
}